<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://doc.hyperf.io
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */

namespace App\Nats;

use Hyperf\Nats\Encoders\Encoder;

/**
 * Class RawEncoder.
 *
 * Encodes and decodes messages in nothing.
 */
class RawEncoder implements Encoder
{
    
    public function encode($payload)
    {
        return $payload;
    }

    
    public function decode($payload)
    {
        return $payload;
    }
}
